package clueless.client;

import java.awt.Color;
import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.LineBorder;

public class GuiHall extends GuiPanel {
	

	
	void init(String room) {
		
		
		this.setLayout(new GridLayout(3,1));

		
		this.add(new JPanel());
		
		JPanel panel = new JPanel();
		panel.setLayout(new GridLayout(2,1));
		panel.add(new JLabel(room,JLabel.CENTER));
		panel.add(this.getCharacterPanel());
		panel.setBorder(new LineBorder(Color.black));
		
		this.add(new JPanel());
		
	}

	public GuiHall(int vert) {
		super();
		makeCharacterPanel(vert);
		
		if (vert ==0 ) {
			this.setLayout(new GridLayout(3,1));
		} else {
			this.setLayout(new GridLayout(1,3));
		}
			
		
		this.add(new JPanel());
		
		this.add(this.getCharacterPanel());
		this.getCharacterPanel().setBorder(new LineBorder(Color.black));
		
		this.add(new JPanel());
		
		this.setMrGreen();		
		clearPlayers();
		
	}
	
}
